package com.rc.evcharger.service.hlhtsk;


import com.rc.evcharger.common.base.BaseService;
import com.rc.evcharger.mapper.hlhtsk.HlhtskTenantMapper;
import com.rc.evcharger.model.hlhtsk.HlhtskTenant;
import com.rc.evcharger.model.hlhtsk.HlhtskTenantExample;

public interface HlhtskTenantService extends BaseService <Long, HlhtskTenant, HlhtskTenantExample, HlhtskTenantMapper> {
    /**
     * 自充时
     * @param tenantCode 互联运营商（入口方）
     * @return
     */
    HlhtskTenant selectHlhtTenantByTenantCode(String tenantCode);

    /**
     * 内联时
     * @param tenantCode 互联运营商（入口方）
     * @param hlhtTenantCode 设备方
     * @return
     */
    HlhtskTenant selectBetweenTenantCode(String tenantCode, String hlhtTenantCode);

    /**
     * 按设备商+运营商查找
     * @param tenantCode     设备方运营商
     * @param hlhtTenantCode SAAS内互联互通时对方运营商
     * @return
     */
    HlhtskTenant selectHlhtTenantCode(String tenantCode, String hlhtTenantCode);
}
